package net.yihang.miaosha.domain;

import java.util.Date;

public class Order {

    /**
     * `id` bigint(20) NOT NULL AUTO_INCREMENT,
     *   `user_id` bigint(20) DEFAULT NULL COMMENT '用户ID',
     *   `goods_id` bigint(20) DEFAULT NULL COMMENT '商品ID',
     *   `delivery_addr_id` bigint(20) DEFAULT NULL COMMENT '收获地址ID',
     *   `goods_name` varchar(16) DEFAULT NULL COMMENT '冗余过来的商品名称',
     *   `goods_count` int(11) DEFAULT '0' COMMENT '商品数量',
     *   `goods_price` decimal(10,2) DEFAULT '0.00' COMMENT '商品单价',
     *   `order_channel` tinyint(4) DEFAULT '0' COMMENT '1pc，2android，3ios',
     *   `status` tinyint(4) DEFAULT '0' COMMENT '订单状态，0新建未支付，1已支付，2已发货，3已收货，4已退款，5已完成',
     *   `create_date` datetime DEFAULT NULL COMMENT '订单的创建时间',
     *   `pay_date` datetime DEFAULT NULL COMMENT '支付时间',
     */
    public static final int STATUS_NO_PAY = 0;
    public static final int STATUS_PAY = 1;

    public static final int CHANNEL_PC = 0;
    public static final int CHANNEL_ANDROID = 1;
    public static final int CHANNEL_IOS = 2;


    private long id;
    private long userId;
    private long goodsId;
    private String goodsName;
    private Double goodsPrice;
    private int goodsCount;
    private int orderChannel;
    private int status;
    private Date createDate;
    private Date payDate;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(long goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public int getGoodsCount() {
        return goodsCount;
    }

    public void setGoodsCount(int goodsCount) {
        this.goodsCount = goodsCount;
    }

    public Double getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(Double goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public int getOrderChannel() {
        return orderChannel;
    }

    public void setOrderChannel(int orderChannel) {
        this.orderChannel = orderChannel;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getPayDate() {
        return payDate;
    }

    public void setPayDate(Date payDate) {
        this.payDate = payDate;
    }
}
